<pro-header></pro-header>
<nz-card>

    <div nz-row style='margin-bottom: 26px;'>
        <div nz-col [nzSpan]="4">
            <button nz-button [nzType]="'primary'" [routerLink]="'../add'">新增教师</button>
        </div>
    </div>

    <nz-table #nzTable [nzAjaxData]="data" [nzTotal]="total" [nzPageSize]="pagesize" [nzPageIndex]="pageCureent"
              (nzPageIndexChange)="getlist($event)">
        <thead nz-thead>
        <tr>
            <th nz-th>
                序号
            </th>
            <th nz-th>
                <span>姓名</span>
            </th>
            <th nz-th>
                <span>头像</span>
            </th>
            <th nz-th>
                <span>驾龄</span>
            </th>
            <th nz-th>
                <span>教龄</span>
            </th>
            <th nz-th>
                <span>通过率</span>
            </th>
            <th nz-th>
                <span>操作</span>
            </th>
        </tr>
        </thead>
        <tbody nz-tbody>
        <tr nz-th *ngFor="let item of nzTable.data;let i=index;">
            <td nz-td>{{i+1}}</td>
            <td nz-td>{{item.name}}</td>
            <td nz-td>
                <app-myimgload [srcimg]="item.headerimg"></app-myimgload>
            </td>
            <td nz-td>{{item.dyear}}</td>
            <td nz-td>{{item.tyear}}</td>
            <td nz-td>{{item.passper}}</td>
            <td nz-td>
                <span>
              <a [routerLink]="['../show',item.id]">编辑</a>
                <span nz-table-divider></span>
              <a (click)="delTeacher(item)">删除</a>
            </span>
            </td>
        </tr>
        </tbody>
    </nz-table>
</nz-card>
